home *** CD-ROM | disk | FTP | other *** search
- %%%%%%%bid.tex%%%%%%% %Modified central figure
- \def\hand#1#2#3#4{%
- %Example: \hand{AKJ765}{AK9}{--}{T983}
- \vtop{\hbox{\strut\s\enspace#1}
- \hbox{\strut\h\enspace#2}
- \hbox{\strut\d\enspace#3}
- \hbox{\strut\c\enspace#4}}%end \vtop
- }%end \hand
- %
- \def\crdima#1#2#3#4#5#6{%
- %purpose: layout bridge hand
- %#1 left upper text
- %#2 right upper text
- %#3, #4, #5, #6: N, E, S, W hands
- \vbox{\halign{ #\quad\cr
- #1& #3& #2\cr
- $\vcenter{#6}$&$\vcenter{\copy\NESW}$&
- $\vcenter{#4}$\cr
- & #5& \cr
- }%end \halign
- }%end \vbox
- }%end \crdima
- %
- \def\NESWfig{%
- \hbox{\vrule
- \vbox{\offinterlineskip\tabskip0pt
- \hrule\kern.25ex\halign{\hskip.5ex
- ##\tabskip.5ex&\hfil##\hfil&
- ##\hskip.5ex \tabskip0pt\cr
- \noalign{\vskip.5ex}
- &\hbox to 2ex{\hss\N\hss}& \cr
- \kern.25ex\W& &\E\kern.25ex
- \cr
- &\hbox to 2ex{\hss\S\hss}& \cr
- \noalign{\vskip.5ex}
- }%end \halign
- \kern.25ex\hrule}%end \vbox
- \vrule}%end \hbox
- }% end \NESWfig
- \setbox\NESW\hbox{\NESWfig}
- %
- \def\ebid{\errormessage{%
- bbid command is missing}}
- %
- \def\bbid{\bgroup%
- \def\ebid{\egroup\egroup\egroup}
- \def\alert{$^A$}
- \def\think{$\ldots$\thinspace}
- % etc.
- \vtop\bgroup
- \halign to\bidwidth\bgroup \tabskip2ex
- plus 1ex minus 1ex& ##\hfil\cr
- \FIH\hfil& \SEH\hfil&
- \THH\hfil&\FOH\hfil\cr
- \noalign{\vskip.5ex}
- }%end \bbid
- %end input bid.tex%
- %
-